package J1_7;

import java.util.Scanner;

public class J107task1 {
    public static void main(String[] args) {
        int i;
        Scanner scanner=new Scanner(System.in);
        System.out.print("输入积木的层数:");
        i=scanner.nextInt();
        jiMu(i);
    }
    private  static  void  jiMu(int n){
        for (int i=n;i>0;i--){
            for (int j=i*2-1;j>0;j--){
                System.out.printf("*");
            }
            System.out.println();
        }
    }
}
